rework database