corrected sql query
initial upload