A wrapper of node-mysql to improve fault tolerance, including enhanced query generator and data escaping powered by template engine