update to method of Helper of Sqlite plugin.

Update of sqlite2 methods to methods of the Helper of the Sqlite Plugin. This plugin takes care of switching between sqlite2 and sqlite3.

 * added also update of PHPDocs of some methods
 * remove unused global variable declarations
 * declare other variables
 * added support for _wiki type (same as no type defined)