couple modifications to enable the db:migrate script to work