fixed table structure

some minor fixes in table the table structure.
this should also fix the bug where you cant filter for "owner" or "secondary owner"