Refactor connection to be thread local object

- path to transactions
WIP - transactions