improve fetch headers

tell mysql optimizer to fetch message headers through messages, not headers