adding support for prepared statements in db::query