Update filemetadata and don`t throw uniqueness error. Fixes #4129