Refactored all data manipulation into seperate model file for MVC. Controller is next.