Added parser for sql cmd support

Parser for sql cmd, unit tests fixes