added mysql configs
some bugs fixing