Updated documentation of the counter cache and the database schema