Moved DBQuery to Model from ControllerClass