Basic GUI-DB integration and MVC fixing