refector db conversion