Lib de local cache, refatoracao interface query_wrapper