fix bug in pubchem version

query results where not being returned by the query function.