Update genjson.php

use correct (last week) query