Added db connector and MVC pattern