(mingle 330) Displays number of user uploads on upload dashboard

* Adds basic method to fetch user upload count
* Makes it so if there are db problems or an invalid DB is selected,
upload stats are not displayed at all.

Change-Id: Ia0b615c6271957711febbf8d64f64074ab4c84f2
Merge "(mingle 330) Displays number of user uploads on upload dashboard"