remove commented out code
workaround for Derby requiring batch statements

+ make sure payloads are always written as bytes