Change names to avoid name clashes with osfile module
Use a bytearray to download ruleset database file with XHR
Perform database operations to copy new ruleset contents to rulesets.sqlite
Revert back to using the builtin ruleset database file