building the crud