modifications to SqlConnector, PostSqlConnector and /sql/index