Introduce new API for parametrized queries