product endpoint and db persistence