Legacy repository

Created a UserRepository and used it in legacy app