Added logging for server and finished logging for database.