adding the sql fields as p tages