Close SQL Connectors when they are unused

Optimised SqlConnector now closes Statements