mysql connection fixes