[hub] type-safe sqlite unregistration