updated mysql adapter