changing memberships table to integer types