update db on image upload