Ensure that a cursor outlives its database

Cursors now borrow a pointer to the database handle. This changes the prepare() api.
Add support for i64 columns
Merge pull request #62 from PeterReid/master

Ensure that a cursor outlives its database
Merge pull request #63 from PeterReid/master

Add support for i64 columns