add db interface of inventory report