add mysql connection and test api