changed db migrations to work with PG schema