Fix mysql implementation and added default config