refactored ParseNamedParameters to first remove the comments from sql and then look for the params