FIX: Updated ShopPeriodReport to hopefully finally be compatible with pgsql