cache like counts in db