try to use rest api with mysql