updates to sql, added spuploads