feat(postgres): allow connect to specific db to get_db_names

This is required in our secured environments.

Change-Id: If680bf3e627170dbbb4442ce0265748d0e6e225c