MODIFIED: upload sans bug SQL