missing check-in of dbstats fixes