Framework for returning data from a database.