cache engine in db