Before you can run the local Web server of Mathics, you have to initialize its database used to store variable definitions. Simply run

$ python initialize
as the user who you want to execute Mathics with (usually not root). This will create an SQLite database file in ~/.local/var/mathics/. You only have to do that once for each user.