Change Engine class to use MySQL singleton pattern.