add crud for legacy model