have to leave now! starting to work on querys in controller to work with postgresql