Moved the test code to the Model

The functions getDBinfo and getQueryResult have been moved from
their development locations in Test into the Model.

I'm starting to mess around with these functions to pass user input
to them from the view-servey view.
Got some funktionallity

The user query request form now has the logic written to make it
functional. It's currently in the all in the controller and I'll
need to evaluate where everything is going to go.