refractored Agent to Users in db, service, dao and model