update index and main.js
add folder for sql