I actually wrote my own KeyVal over Postgres in js. It worked fairly well, but got better perf with MongoDB which I found quite sane and easy to use.