v0.5.868 update - fix write to db