fixed sql issues in adding users to trips