fix report generation for multidb