problems selecting item from database