bug fix: wrong db key used when initializing id_factory