Escape db write