Fixed #1, and started using sql.js