* Handle cases where gateway query at account level returns more than one
* Change constant variable as it needs to be reassigned
* Fix mistake for handling case where sql query returned no match
* grammar
* Fix linting errors
* Avoid checking for duplicates in case there is only one match to avoid stringifying+parsing for nothing