Improved test for graphical query (i.e., query sent by query-composer), added relay-service.rb used to populate db