rework db