remove uneeded check in _from_row
add __eq__ to models so they can be compared