Remove some remaining synchronous queries in data objects

Fixes collection and search saving
Remove (non-async-compatible) REGEXP UDF in Zotero.DB.getNextName()

And remove UDF setup code

Duplicates view also used REGEXP, so we'll need to figure out another approach
for the async rewrite of that (#519). There are no other current UDF consumers,
so this closes #528.