Add package.json dependencies, fix sqlite3 initialization