deleting object from db