added tests/factory based on screen_names and refactored based on user_ids. Added function for checking if user exists in the database