backup before database layer rewrite