did some work in the database so that we can display courses