writeDB added.