almost all of the sql queries finished
all queries except doctor search