added program loop to update system and updated mySQL table to state the status of a request.