Census API Web App - Query format correction and refactoring