Changed Database Query for Productiondata.