Moved data handling to data.php, display_errors hack