insert query for the elections flow- working