Added DB write to disk