I found an easy fix to change getQuerySequencesString from
return "select table_name from information_schema.TABLES where table_type='SEQUENCE'";
to
return "select table_name from information_schema.TABLES where table_type='SEQUENCE' AND table_schema = database()";