Classification permissions

Sorry figured out a better fix than dropping prepared statements. I'm trying to figure out how to make it into ActiveRecord PR.