Fixed getClasses function. Made insertSession function work with sessionID instead of classes name