Replace sqlite3_prepare with sqlite3_prepare_v2

SQLite3 manual suggests: the sqlite3_prepare_v2() and sqlite3_prepare16_v2() interfaces are recommended for all new programs.
Fixes #188