Fixed OGS uploading with MySQL