Changed migration to use commands for postgres.