Implement database integration.