updated controller class and made new method in the dbfacade class