the sql query of AccountManager modify to support azure sql