move all the issue_type munging to the database, and assume clean(er) data on the frontend