Add handling for the file_id data to the sync items.
Query file Id from server if unknown.
Write file Id to journal table.

Since this requires a change of existing sync journals, database migration
code was added.