generators::legacy0 refactoring.

MySQL connection object became class member.