Node.js SQL query composer