fixed bug in addActivity sql