Implemented MySQL access for available courses