function connect(connection) {
    return getDatastoreClient(connection).connect(connection).catch(logError);
}
connect attempts to ping the connection
@param {object} connection Connection object
@returns {Promise} that resolves when the connection succeeds