updated mysql connection class