Set mysql vars earlier