execute insert and select