add query .rb