Connection Between Device , Server and Database Setup