Move postgres checking to correct place.

The ShellBootstrap is not a safe place to check for postgres, since the
configuration has not been loaded yet.

Move it to ShellDatabaseConnection, after the first connection was
successful.

Change-Id: I9a90bc1ae9ebfec94d4c222f78fc4683be7cd033