Fixed the random 500 errors. They were all caused by db session fuckery, we should be good now.