Fix static prefix table in LIB.php and INDEX.php (mod_dialogue)

When prefix Moodle table is other (not mdl_), cron.php broken!