removed marginType from sql script