add mysql for api, init api
codestyle