add cache data to db
need to test it