DB referctoring