Book-only database

Big changes. Fixes #10, fixes #12