fix make_problem_analysis to work when table doesn't initially exist