Describe a scenario where you had to integrate a custom software application with an enterprise database or ERP system.