Write contents to buffer and file.
Updates GtkSource.Buffer.text with new contents and writes to file on disk. For files in database, creates backup before writing.
2. Write to file (creates backup, writes, updates metadata)
3. Update last_read_timestamp to match file modification time
| contents |
Contents to write |
| Error |
if file cannot be written |