Merge SQLWrite classes