Imported and cleaned up NoDb sample.