refactored users methods and collection into app