Jen's fix to deleteDatabase