add and edit in cache and DB