(too much) To Do
Warning: currently, the database schema is unstable, meaning that it can change any time and break everything. Be warned.