FAIMS-217: adding certainty when saving relationships + fixing bug with saving timestamps in database queries