Have fixed issue #2 and #3.
The threads now correctly uses a db session per thread, and each.