added JSONSerialize function to serialize only the database variables of the model object
on JSON format output, calling JSONSerialize on the model to only output the relevant variables of the model