fixing dropping database