Fix database access number when fetching courses.