sqlite3 cleanup