Fix db migrates for Postgres