fix bug in saving of sql: 'comment...' saved as comment