Fixed spelling error
Rowid changed only if SQL-query successful
Changed back WIND_SAMPLES to numeric value