Rework database