fixing wrong foreign keys
register vote-table