changes db to psql