FAIMS-787: fixed tar helper to directory instead of file list
FAIMS-786: fixed bug with merge query failing due to primary key violation