move cache form DB promise to DB, enhance DB to support sequenceAdd