Added AutoCloseable transactions.
Added AutoCloseable query result.
Removed redundant type params.