Server slight optimization

No need to fetch all matching rows in memory if we keep only the first
one (hence the former `current`). This patch just fetches the first row
and discard all others.

---

J'ai basé ce patch sur mon fix précédent pour fasciliter le merge.