Completed rfdb recevie sample code for demo.