change to features sql