Made vote.php interact directly with connector