GetAccountIDByChar converted to QueryDatabase