Fix summary info for institutions

The summary info for institutions (number of courses and students, and
whether the institution is active or not) is often incorrect due to
race conditions. This path fixes the issue by obtaining the summary
info for institutions from DB_MASTER.

Bug: 40433
Change-Id: I9f4186580f396a135273e189fc88dc38f47a555f