added support for parameterized queries