Node module with query helpers to write a REST API