FAIMS-352: fixing inserts for adding entities to relationships