Changed saving datas from file to sqlite3.