Unset read-only flag after writing a db to a different file.