All data is stored in an SQL backing store which is read at startup time into memory. The SQL database and the Javascript models are very similar. Below a simplified schematic overview.
The Database
Below the basic SQL tables. A PDF file is provided for printing or hiRes viewing.
