get table relations