sql was slightly modified to include one rejected bid