added addcourse functionality and db stuff