added function searchKeyFromValue
bug fixing for insert function