db_wrapper: Add a sanitize function