database reworked