php: build sqlite3 class too