Better sollution for mysql connect + Config update