courses database function added, but still has unknown bug
D