Working with object tables and relations