Prevent segfaults when attempting to read/write an unopened db

Updates sophia.cc to 0.1.1