Corrected db cache and delete