Hi,
You should not write the table directly.
please use CuteChat API :
ChatPortal portal=ChatSystem.Instance.GetCurrentPortal();
lock(portal)
{
portal.DataManager.AddDepartment("mydepartment");
portal.DataManager.AddAgent("mydepartment","User:username"));
}
Regards,
Terry.