correct mysql connection for loading data to idle