Fixed devise and database migration errors