Update sdb, adds support for SdbFmt, fixes segfault in sdb_encode