remove unnecessary explicit mysql connection