Querying an SQLite database is simple enough (http://php.net/manual/en/ref.pdo-sqlite.php), however the file must be locally accessible and writable by PHP, which is problematic if the database file is on another server. I don't even know if it is at all possible with an external database.