Introduce query_one() in Repositories