Create the conversion class for creating json ar

Takes an array of ids (1,2,2,2,3....) then creates the proper json array
and will save the array to the database for each month. Currently not
quering for doctor name.