tickets/DM-199: Develop new master-worker result system

Maybe. But then escapeString() would have to operate via iterators (string isn't guaranteed to be contiguous until C++11), which would bring the interface farther from mysql_real_escape_string (which I am glad to avoid using). I'll put in a note.