YAWNDB code and tests