moving raw DB requests into models

moving raw db requests to controllers
more of previous

more of previous