Unified all code into a library (mysql2sqlite.php)