re-design database