Update base select method

insert/update to be done