Edited history and findstudent to read from db