Since I saw your currently waiting messages... The schema name for the main database, i.e. the one attatched by the call to sqlite3_open(), is "main", not "master".
Since I saw your currently waiting messages... The schema name for the main database, i.e. the one attatched by the call to sqlite3_open(), is "main", not "master".