Simple SQL Parsing Code