Update sdb from git, fixing some crashes