ENH simplify sqlite3_dumps code