Removing old db stuff
Login, set session cookie, generalize getCourses function