mysql connect and query midified in a class