[BACKLOG-846] - correcting bug in logic for parsing sql script that cont...

...ains multiple statements separated by semi-colon.