refactured relations: now using a more generic table with id,field and foreign_id