modified the code that inserts updated into the mysql database, everything is working as expected. Next step is to modify the cgi script