changed back to def, will check it later why defdb does not work, although it seems quite nice