Changes from SQLite to MySQL