Use sqlite3_errstr instead of sqlite3_errmsg.

Saves having to worry about database handles and ting.
Error checking when searching for libsqlite3.

Throw error if an empty string is returned.