hi pegazaus!
if u are familiar with SQLite why don't you just call SQLite - Functions in PHP?
In PHP5 u don't even need any includes, just call
$dbhandle = sqlite_open('dbname',chmod,err_var);
$result = sqlite_query($dbhandle,'select count(*) from gb');
and so on...