I am trying to write a web app in the MVC pattern and I wanted to know if it is good practice to have one class with all of the database calls that will be used by the application in this class.
Then just create an instance of this class when you need it?
Or is it better to mix database calls into any particular class (model or controller) that needs to access the database?