Finished most(if not all) teacher queries