add entity cache
add cache init;rename package:query->db