SQLite2JSON class in PHP, covert an SQLite database to its JSON representation