change the lookup in the onClick handler to use DB