Fixed writing to Db with file paths.