add primitive config to query.cgi