Fix Database Migrations and Move Javascripts below Yield Call