user role changed to integer in database, model and tests