simple implementation of a single use "ticket", built with mongodb and node.js