Bug fix - upload.php

Corrected a bug where sometimes individual AIML files were failing to be
added to the database.