updated crud factory and update seqeuence