Created the courseFunctions class to put db functions