For retrieving the data from db I used a cron job to retrieve the data and insert the data into a new top-selling product table. This table contains only one column which holds