do the db refactor.