removing dupe, improving quote handling and adding sql provider types