[server/main] Clean up.

Previously checkDBConnection() returns true if the address of
the reference is not NULL. This logic is actually unnecessary.
It was just added to avoid a warning of 'unsed variable'.