added database migration and updated user model