Remove dead code, and fix foo's exploit
Store autocashouts in database