crud generator WIP
Fixes #820.