change database to postgresql. Update invalid migration scripts to run on postgres.