Prototypes for ngdb