DB design for reference. As well as notes.