fixing wrong foreign keys
register vote-table
Merge branch 'master' into stable