fix issue where nuking database doesn't clear uploads lock