Changed code to represent correct order for adding cols in alter statement. In the past I just added these at the end now I insert these in the correct location.