the implementation of shmdb in node.js