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

This can be simplified a great deal by using the [$callable_name](http://php.net/manual/en/function.is-callable.php) return param from is_callable, then just prepend the spl hash if it happens to be an object.