ivle.db: insert_problem_attempt and write_problem_save now take a user object, not a login, so they don't need to call get_user_loginid. Thus we also remove get_user_login_id. www/apps/tutorialservice: Call the two functions with req.user, not req.user.login.