Fixed broken batch query and included update that makes it live.
No tests have been written yet. Also fixed the null key bug for unique downloads.