fix some sql queries
add grade library files
use the correct variable
migrate function scorm_get_user_grades()
added controller for prereqs AJAX calls