change to MVC and adjust Connection class