Added logic to pull data from database for pizza and publish