handle existing relations by incrementing count
leave values as integer
return copy of json values rather than pointers