crud generator WIP
Fixes #820.
Fixes #811.