db.py: Replaced method "get_problem_attempt_last_text" with "get_problem_stored_text". This method now finds the last text to have been either saved OR submitted, using one mega query :) Now this represents the last thing the user "saved", where submitting also counts as saving even though it isn't written to the problem_save table.