created pta.php to get data to database