add insert and delete queries