refactor db2