Fixed SQL in uploads

Apparently we can't do multiple inserts separated by ;  Hopefully this
new technique fixes that.