database.php to pgsql