added index to user models and created crud methods in assets controllers.