Convert database to PSQL