Length functions return size_t.
Cleaned sqlite queue calls.
Moved pool to elm.