fix isolation of database

Closes #32.