Fixed database script to use the sqlite3 binary directly as per issue #107