Issue #6: Added db/access.php file with proper Moodle capabilities.

Modified this block to support Moodle 2.6 and up.