[UPDATE] Shifted code running query on database for all users to a controller class wrapper that has potention for expansion into a powerful API for easy querying of core data model.