Init MySQL and Log modules