removed db connectvity from the controller