support db write