added vote() in Class Database