DB write test