Refactoring controller to use the new DB model interface. It's a lot more simple right now so much of the code lines are going to disappear soon!