Migrate completely from shelve to sqlite3