moved all the model logic (really queries) from controller to model scopes