add activity type when install the extension and fixed sql error