Added restful API for accessing courses from DB