tablemodel: fix crash if rowdata couldn't be fetched
sql: use _rowid_ instead of rowid

This doesn't really solve the problem, but reduces the chance
to have a nameclash with rowid, until we come up with something better
we can't fully support tables with a column name _rowid_ but that should
be very seldom