database connect and webservice connect sample