Fixing the Product view pages and database connection