moved php to its own file datahandler.php