those lines are trying to use the database connection.
The error suggests that the database connection file is either missing or not correct.
If you edited a server behavior, make sure you did not change the connection to use from the localhost connection to something else.