Changed sqlite3 to MySql