added get tutor history function that returns JSON