Refactoring autocompletion

* Switching params places
* Base64 encoding "where" param