Modified create.js, add SELECT in MySQL