remove event_id from state table as part of the primary key
add db model and crete script