purge db cleanly if requested
use decl_enum recipe to provide string typing