StatsDB is a sqlite database instance file, located in the monitord directory under the site. For example: $HCISITEDIR/exec/hcimonitord/<mark class=”highlight”>mdstatsdb</mark>.sdb.
Therefore you should be able to query the same as any sqlite database.