added getPillLog logic to getLogs.php
taking out trash