now update and create are good. added some trigger in the dtabase to check weather image and media being uploaded or not.