add db class and product model