Add upload image to the database function