almost done with resetting the database