So the image isn't uploaded to the imagesDB directory which is two directories above the one that the ws_inventory_insert.php page is at? Try outputting the debug info to see if there are any errors when you are uploading.
The inserting into your database isn't done automatically, it is accomplished by getting the values returned by the upload server behavior and inserting using DataAssist.