Update id column in files table