if performance becomes a problem statically hosting sqlite DBs with client side queries and http range requests is an interesting approach:

https://github.com/phiresky/sql.js-httpvfs

Thanks, that's very interesting.