Removes unnecessary lines from sql scripts