implement a better solution for generating an insert statement, the "set"conversion stinks but it'll do for now