fix(db): query cache properly handles more callable types

It doesn't really matter. The danger of collisions in all these are pretty low