I added to main js and the export of sql

I'm still working on main js