ported init_db to javascript
version bump