Use correct offset increment for double.
Put connection back into pool for some error codes.
Use thread pool for lua thread.
replace doc update