reworked database ideas