load course and faculty objects in default controller

add new function to add new objects in db; flush everytime calling the
function; load course and faculty object in form object