Fixed deleting of single item wipes out the entire database