Doug/thread experiment

Increasing max history size to 30000, making cull history threaded.
The ordering is not guaranteed - add an ORDER BY clause to be safe