database and produc model controller