move queries from views to controllers
Merge pull request #11 from jonrish/controller_variables

move queries from views to controllers