REWRITE: now with PHP, SQLite, etc..