add bdb sample code