save before refactor of db