Partially added view report code. (sql not giving correct results...).