Fixed the DB existance test for postgres