put connection to mysql into right script