Fixed bugs in the query and webview parts
Updated queries for unicity of results.