delay write to fix copypad -- bad practice but due to db.set not allowin...

...g callback

Shallow fix, I wold accept better proposals.