Added default database for connection check in postgresql connector