Switch to mysql from sqlite3