Added purchasepen declaration to zoo.php query