renamed globalCallbacks to global, merged db options before constructed