added a new controller (lessons_controller) to comunicate with a view
catch all lessons from the database
added new lessons_controller and now render JSON file