Fix SQLite issues

See bug #10
Release Candidate 1