more sql done. disabled /feperm