Sync with sdb 0.8.rc1 - lot of api changes