Use the psql command line to run migrations for better error handling

Also add some more helpful print statements