add keyExists interface, return db in findTag