upload sql query