Add one select, insert and delete query