Last version using SQLite
Migrating code to MySQL