implemented delete queries