return sql code from last SQL command
0 = ok
100 = entry not found
<0 = error
see sql error handling