New graphics for database statistics monitoring, and refactorings

Change-Id: Id3be7bbfee198f8da9f648f6cf3b9e45ff7a535e