Fix bug causing `increment` calls on model instances to update the whole table. Fixes #890.