Preliminary new db code.