Added code to fetch photos from the received json and insert records to database tables.
Also added code to create .png file to shelter photo folder