added vote-model
fixed db-model