Change unique constraint to index as file_id isn't unique on measusrements