Fix for correct index detection when there's more than 1 Moodle in an Oracle instance