fixed query to add reservations