Changed sqlite3 to mysql