updated for newer rustsqlite; fixed some warnings.