put additional () to sql query of getAccounts function for ES-979