pub fn is_query_write(sql: &str) -> Result<bool>