print value in database when searching