[JE NH] Moved normalize keys to db namespace and generalized keyword conversion.