calling two fuction on main fetch school fetch query