Implement database integration on stock page.