Implement database router to allow for more natural use of models.