setting up mysql connection and make the first GET call