fix destroy db