Update sqlite to work with rust-0.5.

Pretty straightforward port.