replace query api reference with statement api. Fixes #143