Added the controller,and the view whichloads a lotofpics from the database