Functionnal upload of images and retrieve data from database