Fix problems with creating mysql tables