tested and fixed insert.php
Added retrieve.php and slightly updated the insert.php