Parsing, updating sql