Reverting mysql connection reference