- "(" + Date.now() + "," + p.uid + ",'" + p.fen + "',?,?)";
- db.run(query, p.instruction, p.solution, function(err) {
- return cb(err, {pid: this.lastID});
+ "(" + Date.now() + "," + p.uid + "," + p.vid + ",'" + p.fen + "',?,?)";
+ db.run(query, [p.instruction,p.solution], function(err) {
+ cb(err, { id: this.lastID });