Creating controller class
starting work on impleminting controllers, made changes to pass connection to controller objects so that models can be correctly instantiated