release db cache on close