Change to use querySQL rather than making new statements.