Code to alter database fields
Code added to alter fields in DB first checked if fields are present currently in DB if not then newly created function called which fires alter query on DB and creates new fields
Code added to alter fields in DB first checked if fields are present currently in DB if not then newly created function called which fires alter query on DB and creates new fields