modified code to call find_contact and find_user
function for searching user with given query param
function for searching contact with given query param