tag write on db implemented, one at time