HealthEdge Software Interview Question

- How would you improve this code to put it on production? - Why use a Singleton pattern for a database connection?