Update before_migrate.rb

Initialize app dependencies and set up db-connect.php for the app.