query one db write done