Use ContentValues for one op operations

This should avoid allocating the ArrayList...
Fix #152: add constraints to votes table

The remaining tables can't have constraints, since you can have multiple
replies to one thing.