Fixed delete so returns affected rows