* adapt to new hive.go version * upgrade hive.go * use store backed sequence * add option to use in-memory database * address review comments