Fix database integration.  Added RFC example CT test with database usage.