app to python server to mysql back to app