fix test
change increment/decrement calls to sql
add fix for empty post flags
fix conflicts