use a pool of connections instead of a single one

allowing parallel operations to be done instead of using a single lock global
to the whole storage
don't leak the keystr around
minor fix to the makefile