fix issue #7: replace previous query results.

Found few more issues. Will fix those later.
fix issue #6: support multiple characters