sequence the inster, update, delete queries