[db] added the accumulate time functionality