before get rid of the db