move sql to avow_events, add columns