Changed uid to rowid