Synapse maintains room and user statistics in various tables. These can be used for administrative purposes but are also used when generating the public room directory.
Stats correspond to the present values. Current rows contain the most up-to-date statistics for a room. Each subject can only have one entry.