migrate: fix syntax error
requirements: pin and add psycopg2
migrator: test class loading
migrator: test migrations_to_run
migrator: refactor run into sub-parts