handling the dropping of the db