[IC] updated sql