add dynasty to SQLite works table