fix two bugs in query system

- codec bin 2s were everywhere
- read pages did not get all their fields set (cache weight was
set to 0 == unlimited)