fixed rowid issues in form where it was inconsistently checking for rowid=0 and not "" and also rowid-1 issues with sef