Cookie quits when deleting databases