Simple sequence generator for node+mongodb