[IC] updated sql with new tables and columns