Function createSqlJsAdapter

Creates a sql.js adapter. open({ filePath }) loads the database from that file and saves it there; with segment, from a file of the segment's own.

When segment is not a name a segment can take.