remove berkley db to fit apache license, add transaction support