Server now listens for connections only if database connection established