improving uploads sql II