Close DB connection in thread
wip: cleanup
wip: mongoid