HUE-1638 [core] Secure database connection