date db writing update