Adding SQLite support, removing some SQL data and updating main

The table structure has also been updated. It now works with both SQLite
and MySQL. The system can now dump both to MySQL and SQLite. The SQLite
DB still needs an init as of yet.