Add a dependency injection system with a container object
Handle mysql disconnect