Bugfix: close session after query to return connection to connection
pool