Added a global debug mode, got insert.php almost fully functional, it will insert but it has issues with reporting data validation problems.