changed database from mysql to postgres