Added gorm tag for primary key fields
Now explicitly check for return of empty rows