The database has the following structure:
The tables can be downloaded individually:
Or you can grab the whole .sqlite file here.
The code for the database (both backend and frontend) is on Github.