Display total submission and ac rate of a problem.

Update the structure of the database.