Revert "insertstmt not using any where"

This reverts commit db0ccdfc8c11d2c507822354a2b559196ed086af.